package com.wtg.client.feign.server;

import org.springframework.stereotype.Service;

import com.wtg.client.api.res.StringDataRes;

@Service
public class UserLoginServer {

	public StringDataRes oauthLogin(String platform) {
		String url = "";
		switch (platform) {
		case "gitee":
			String client_id = "77e9ce8b9e727a6af8da3381b40b405af87abab4b7330c688b2ce3c084c6c7df";
			String redirect_uri = "http://localhost:22000/clientTwo/oauth/giteeCallback";
			url = "https://gitee.com/oauth/authorize?client_id="+client_id
						+"&redirect_uri="+redirect_uri+"&response_type=code";
			break;

		default:
			break;
		}
		StringDataRes dataRes = new StringDataRes(url);
		return dataRes;
	}

}
